using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region StudentLog

	/// <summary>
	/// StudentLog object for NHibernate mapped table 'StudentLog'.
	/// </summary>
	public class StudentLog
	{
		#region Member Variables
		
		protected int _id;
		protected int _studentInfoId;
		protected string _userName;
		protected DateTime _addDate;

		#endregion

		#region Constructors

		public StudentLog() { }

		public StudentLog( int studentInfoId, string userName, DateTime addDate )
		{
			this._studentInfoId = studentInfoId;
			this._userName = userName;
			this._addDate = addDate;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual int StudentInfoId
		{
			get { return _studentInfoId; }
			set { _studentInfoId = value; }
		}

		public  virtual string UserName
		{
			get { return _userName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserName", value, value.ToString());
				_userName = value;
			}
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		

		#endregion
	}
	#endregion
}